package cn.com.yiqi.wsc.dao.task;


import cn.com.yiqi.wsc.entity.task.ScheduleJob;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository("scheduleJobMapper")
public interface ScheduleJobDao {
    int deleteByPrimaryKey(Long jobId);

    int insert(ScheduleJob record);

    int insertSelective(ScheduleJob record);

    ScheduleJob selectByPrimaryKey(Long jobId);

    int updateByPrimaryKeySelective(ScheduleJob record);

    int updateByPrimaryKey(ScheduleJob record);

    List<ScheduleJob> getAll();

    /**
     * 根据groupId
     * @param groupName
     * @param jobName
     * @return
     */
    Long getJobIdByJobNameAndGroupName(@Param("groupName") String groupName, @Param("jobName") String jobName);
}